package com.aaa.service;

import com.aaa.dto.CarDto;
import com.aaa.pojo.DefaultMsg;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarService extends IService<CarDto>{
    List<CarDto> listAllById(Integer userId);

    DefaultMsg carInsert(Integer userId, Integer goodsId, Integer buyCount);

    DefaultMsg deleteCarByCarId(Integer carId);

    DefaultMsg updateCountByGoodsId(@Param("goodsId") Integer goodsId, @Param("buyCount") Integer buyCount);

}
